-
Notifications
You must be signed in to change notification settings - Fork 324
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: plugin compatibility infos #966
chore: plugin compatibility infos #966
Conversation
I wouldnt enforce it for the moment, maybe a warning in the admin or in the logs? |
No enforcing, will make things way more complicated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @alfredotoselli left some change request
core/cat/mad_hatter/plugin.py
Outdated
# Core compatibility | ||
compatibility = json_file_data.get( | ||
"compatibility", | ||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please keep the structure flat for the moment, maybe with a more explicit naming, i.e.
version
, ..., min_cat_version
, max_cat_version
core/cat/mad_hatter/plugin.py
Outdated
"compatibility", | ||
{ | ||
"min_version": "not specified", | ||
"max_version": "not specified", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe empty string as default value, we made a mess in the past with a different default for every key XD
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agree, also easier to handle in admin-vue
Here is admin-vue PR About an eventual warning we could:
|
Thanks @alfredotoselli, just merged. Let's see what the contribs think about the strategy here. |
Description
Added min and max version on plugin manifest.
If we agree on the structure I'll update admin-vue and ts-client (Plugin.ts type)
We want to enforce it? e.g. on plugin installation or activation (Not necessary for me)
Related to issue #960
Type of change
Checklist: